package com.haibara.codesubmiteval.model.dto.questionSubmit;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

@Data
public class QuestionSubmitAddRequest implements Serializable {
    @NotBlank(message = "代码不能为空！")  // 校验非空
    @Size(max = 5000, message = "代码长度不能超过5000字符！")  // 校验长度
    private String code;
    @NotNull(message = "题目id不能为空")
    private Long questionId;
    @Serial
    private static final long serialVersionUID = 1L;
}
